enqueue_dequeue
container.Binary_Heap_Queue.enqueue_dequeue
enqueue_dequeue(elem T) => T[Redefinition of container.Mutable_Priority_Queue.enqueue_dequeue]¶[src]
Postcondition
post then debug 5 : check_heap_property
Arguments
0.099dev (GIT hash e2d5298d8107bb5fe79600fdb06a49bc75756344)
this is more efficient (factor 2) than an enqueue followed by a dequeue
Time complexity: amortized O(log n) or O(log n) when staying within min_size